package com.hd.assistant.dal.dataobject;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static String Type_PAIPAI = "1";
	public static String Type_TAOBAO = "2";
	private Long id;
	private Long userId;

	private String userNick;
	private Date gmtModified;
	private Date gmtCreated;
	/**
	 * 用户类型 1拍拍 2淘宝
	 */
	private String userType;
	
	/**
	 * 产品版本
	 */
	private String version; 
	
	/**
	 * 过期时间
	 */
	private Date expireDate;
	
	private String email;
	
	private String phone;
	
	/**
	 * 此字段不存储到DB  仅作session使用
	 */
	private String currentToken;
	
	private String currentOAuthId;
	
	private Date lastLogin;
	
	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public String getCurrentOAuthId() {
		return currentOAuthId;
	}

	public void setCurrentOAuthId(String currentOAuthId) {
		this.currentOAuthId = currentOAuthId;
	}

	

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserNick() {
		return userNick;
	}

	public void setUserNick(String userNick) {
		this.userNick = userNick;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Date getExpireDate() {
		return expireDate;
	}

	public void setExpireDate(Date expireDate) {
		this.expireDate = expireDate;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCurrentToken() {
		return currentToken;
	}

	public void setCurrentToken(String currentToken) {
		this.currentToken = currentToken;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public Date getGmtCreated() {
		return gmtCreated;
	}

	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}


	
	
}
